home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group01b.txt
/
000051_icon-group-sender_Wed Mar 7 13:37:55 2001.msg
< prev
next >
Wrap
Internet Message Format
|
2002-01-03
|
3KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id f27KbUA24245
for icon-group-addresses; Wed, 7 Mar 2001 13:37:30 -0700 (MST)
Message-Id: <200103072037.f27KbUA24245@baskerville.CS.Arizona.EDU>
From: "WildHeart'2k1" <stf+inetnews@apl.it>
X-Newsgroups: comp.lang.apl,comp.lang.forth,comp.lang.icon,comp.lang.lisp,comp.lang.mumps,comp.lang.scheme,comp.lang.smalltalk
Subject: Re: New Scientist Puzzle
Date: Wed, 7 Mar 2001 17:28:13 +0100
X-Trace: stargate1.inet.it 983982495 158020 194.185.164.88 (7 Mar 2001 16:28:15 GMT)
X-Complaints-To: usenet@stargate1.inet.it
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
To: icon-group@cs.arizona.edu
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
Content-Length: 1697
> It is interesting to look at the solution strategies followed.
Unfortunately
> I can't read (most) of them... It would be nice if there were explanations
of
> the diverse approaches for non-multilinguists to read.
As far as I can tell, apart from minor details, the Python, Smalltalk and
Dylan (and the Ocaml I derived mixing the 3 I just mentioned) are pretty
much the same.
The prolog solution is interesting because it almost literally (in English)
implement the statement of the problem.
> For instance, APL has a 5 line solution, but seems to use a monstrous
> array on which it does pattern matching? I could (and would like to)
> learn a great deal by implementing such strategies in other languages.
The APL and J solutions (and the K derived from the latter), while harder to
read, also implement the statement quite literally but only to trained eyes.
In particular the array mentioned is of moderate size. In one of the
solutions proposed, the outer product of all the possible squares is still
only a less than 5000 elements array (68*68).
I would be glad to get into the details of the APL or J solutions, but once
I tried and I quickly figured out that it would require too many details on
the languages themselves.
J (and K) and all its documentation and tutorials can be downloaded for free
from the web pages of the vendors producing the interpreters and, if
interested, I recommend the download. The installation procedure is, in both
cases, very easy and quite unintrusive and the documentation includes
primers which explain a good deal about the language and can guide a
beginner to become proficient enough to understand the solutions proposed.
--
WildHeart'2k1